<?php 
use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\helpers\Url;
?>
<div class="main">
		<div class="right_top">
			<span class="z">
				<!--<a href="#">首页</a>&gt;
				<a href="#">订单管理</a>&gt;
				<a href="#">客户详情</a>-->
				<?= isset($this->params['crumbs']) ? $this->params['crumbs'] : '' ?>
			</span>

		</div>
		<div class="right_site right_52">
			<span class="z">
				<form name="form" action=""  method="post" >
					<input type="hidden" name="" value="" id="upload_id" />
					<input type="submit" style="display:none;" id="upload_sub" />
				</form>
				<a href="<?=Url::toRoute("shopmanage/add") ?>" class="add_upload">新增店面</a>
			</span>
		</div>
		<div class="right_kj">
			<div class="table_kj table-responsive">
				<table cellpadding=0 cellspacing=0 class="table edit_edit table-bordered">
					<thead>
						<tr>
							<th>日期</th>
							<th>店长账号</th>
							<th>分店名称</th>
							<th>是否开通线上店铺</th>
							<th>操作</th>
						</tr>
					</thead>
					<?php foreach ($model as $r) {?>
					<tr>
						<td><?=Html::encode($r['create_time'])?></td>
						<td><?=Html::encode($r['login_name'])?></td>
						<td><?=Html::encode($r['shop_name'])?></td>
						<td><?=Html::encode($r['isopen_online'] ? "已开通" : "未开通") ?></td>
						<td><a href="<?=Url::toRoute(['shopmanage/edit','id' => $r['shop_id']]) ?>" class="edit">修改</a><input type="submit" style="display:none;" /></td>
					</tr>
					<?php }?>
				</table>
				<div class="page">
<?=LinkPager::widget([
    'pagination' => $page,
	'firstPageLabel' => '首页',
	'nextPageLabel' => '下一页',
	'prevPageLabel' => '上一页',
	'lastPageLabel' => '末页',
]); ?>
				</div>
				
				
			</div>
		</div>
	</div>